﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NhomSanPhamList.ascx.cs"
    Inherits="NhomSanPhamList" %>
<div class="MainFilter" runat="server" visible="false">
    <span class="headertext">Thể loại chuyên mục :</span>
    <asp:DropDownList ID="cmbTheLoaiChuyenMuc" runat="server" Width="112px" AutoPostBack="True"
        OnSelectedIndexChanged="cmbTheLoaiChuyenMuc_SelectedIndexChanged">
        <asp:ListItem Text="Sản phẩm" Value="1" Selected="True"></asp:ListItem>
        <asp:ListItem Text="Album hình ảnh" Value="2"></asp:ListItem>
        <asp:ListItem Text="Bài viết" Value="3"></asp:ListItem>
        <asp:ListItem Text="Color" Value="4"></asp:ListItem>
    </asp:DropDownList>
</div>
<asp:Repeater runat="server" ID="rptCate" OnItemDataBound="rptCate_ItemDataBound">
    <HeaderTemplate>
        <table cellpadding="0" cellspacing="0" width="100%" class="adminlist" style="font-size: small;
            border-collapse: collapse;" border="1">
            <tbody>
                <tr>
                    <th style="width: 20px;">
                        <input id="chkAll" onclick="javascript:SelectAllCheckboxes(this);" type="checkbox" />
                    </th>
                    <th>
                        ID
                    </th>
                    <th>
                        Tên chuyên mục
                    </th>
                    <%-- <th>
                        Tiêu đề tiếng anh
                    </th>--%>
                    <th>
                        Mô tả
                    </th>
                 <%--   <th>
                        Vị trí
                    </th>--%>
                </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <tr class="row0">
            <td align="center">
                <input id="chkCate" type="checkbox" runat="server" title='<%# Eval("CategoryID") %>' />
            </td>
            <td align="center">
                <%# Eval("CategoryID") %>
            </td>
            <td>
                <a href="?tabid=16&cid=18&id=<%# Eval("CategoryID") %>&l=vi">
                    <%# Eval("NameVi") %>
                </a>
            </td>
            <%-- <td>
                <a href="?tabid=16&cid=18&id=<%# Eval("CategoryID") %>&l=en">
                    <%# Eval("NameEn") %></a>
            </td>--%>
            <td align="left">
                <%# Eval("DescriptionVi")%>
            </td>
           <%-- <td align="center">
                <%# Eval("OrderID") %>
            </td>--%>
        </tr>
        <asp:Repeater runat="server" ID="rptChildCate">
            <ItemTemplate>
                <tr>
                    <td align="center">
                        <input id="chkCate" type="checkbox" runat="server" title='<%# Eval("CategoryID") %>' />
                    </td>
                    <td align="center">
                        <%# Eval("CategoryID") %>
                    </td>
                    <td>
                        <a href="?tabid=16&mod=<%=WebComponents.ConvertType.Encode(this.AddModule) %>&id=<%# Eval("CategoryID") %>&l=vi"
                            style="font-weight: normal;">&nbsp;&nbsp;--
                            <%# Eval("NameVi") %>
                        </a>
                    </td>
                    <%--<td>
                        <a href="?tabid=16&cid=18&id=<%# Eval("CategoryID") %>&l=en" style="font-weight: normal;">
                            &nbsp;&nbsp;--
                            <%# Eval("NameEn") %></a>
                    </td>--%>
                    <td align="center">
                        <%# Eval("ParentID") %>
                    </td>
                   <%-- <td align="center">
                        <%# Eval("OrderID") %>
                    </td>--%>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </ItemTemplate>
    <AlternatingItemTemplate>
        <tr class="row1">
            <td align="center">
                <input id="chkCate" type="checkbox" runat="server" title='<%# Eval("CategoryID") %>' />
            </td>
            <td align="center">
                <%# Eval("CategoryID") %>
            </td>
            <td>
                <a href="?tabid=16&cid=18&id=<%# Eval("CategoryID") %>&l=vi">
                    <%# Eval("NameVi") %>
                </a>
            </td>
            <%-- <td>
                <a href="?tabid=16&cid=18&id=<%# Eval("CategoryID") %>&l=en">
                    <%# Eval("NameEn") %></a>
            </td>--%>
            <td align="left">
                <%# Eval("DescriptionVi")%>
            </td>
           <%-- <td align="center">
                <%# Eval("OrderID") %>
            </td>--%>
        </tr>
    </AlternatingItemTemplate>
    <FooterTemplate>
        </tbody> </table></FooterTemplate>
</asp:Repeater>
